<template>
  <!-- logo组件 -->
  <div class="logoMedule">
    <div class="topBox">
      <div class="content">
        <van-icon name="records" size="18px" color="#999" />
        <p>意见反馈</p>
      </div>
      <div class="content">
        <span>ZXG</span>
        <p>客户端</p>
      </div>
      <div class="content">
        <van-icon name="contact" size="18px" color="#999" />
        <p @click="exitLogin">退出登录</p>
      </div>
    </div>
    <div class="logo">
      <p>知心购</p>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    // 退出登录
    exitLogin() {
      let info = {
        type: "post",
        url: "/user/logout",
        head: "application/x-www-form-urlencoded",
      };
      this.$netWork(info).then((res) => {
        if (res.data.status === 0) {
          window.sessionStorage.removeItem("token");
          this.$router.push("/");
        }
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.logoMedule {
  margin-top: 110px;

  .topBox {
    display: flex;
    .content {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      p {
        margin-left: 3px;
        font-size: 14px;
        color: #333;
      }
      span {
        font-size: 16px;
        color: #999;
        font-weight: 700;
      }
    }
  }
  .logo {
    margin-top: 77px;
    p {
      font-size: 27px;
      text-align: center;
      color: #f63515;
    }
  }
}
</style>
